import LogicFlow from "@logicflow/core";

export default (lf: LogicFlow) =>
	[
		{
			label: "选区",
			icon: "",
			callback: () => {
				lf.openSelectionSelect();
				lf.once("selection:selected", () => {
					lf.closeSelectionSelect();
				});
			},
		},
		{
			type: "circle",
			text: "开始",
			label: "开始节点",
			icon: "",
		},
		{
			type: "RectTask",
			label: "任务输入栏",
			text: "任务输入栏",
			icon: "",
		},
		{
			type: "circle",
			label: "用户任务",
			icon: "",
			className: "important-node",
		},
		{
			type: "rect",
			label: "系统任务",
			icon: "",
		},
		{
			type: "diamond",
			label: "条件判断",
			icon: "",
		},
		{
			type: "RoundTask",
			text: "结束",
			label: "结束节点",
			icon: "",
		},
	] as {
		type: string;
		text?: string;
		label?: string;
		icon?: string;
	}[];
